/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package BO;

import BO.Iter.DeThiBO;
import DAO.Iter.DeThiDAO;
import TableModel.Dethi;
import java.util.List;



/**
 *
 * @author vt
 */
public class DeThiBOImpl implements DeThiBO {
  private DeThiDAO dtDao;
 

    public DeThiDAO getDtDao() {
        return dtDao;
    }

    public void setDtDao(DeThiDAO dtDao) {
        this.dtDao = dtDao;
    }
  
    @Override
    public List<Dethi> findAllDeThi() {
       return this.dtDao.findAllDeThi();
    }

    @Override
    public Dethi findDeThi(String id) {
      return   dtDao.findDeThi(id);
    }

    @Override
    public void update(Dethi id) {
       dtDao.update(id);
    }

    @Override
    public long add(Dethi id) {
        return dtDao.add(id);
    }

    @Override
    public void delete(Dethi id) {
        dtDao.delete(id);
    }

    
        
    
    
}
